﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserLogin.aspx.cs" Inherits="UserLogin" %>

<%
    HttpContext.Current.Response.Buffer = true;
    HttpContext.Current.Response.ExpiresAbsolute = DateTime.Now.AddDays(-1);
    HttpContext.Current.Response.Expires = 0;
    HttpContext.Current.Response.CacheControl = "no-cache";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>四川省药品集中采购报价平台</title>
    <link href="lib/style/layoutNew.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        /*body
        {
            font-size: 12px;
            font-family: "宋体";
            background: #c8e2fd;
        }*/
        #left
        {
            background: url(lib/images/right_bg.jpg) repeat-x left;
        }
        #container
        {
            /*background: url(lib/images/left_bg.jpg) no-repeat left;*/
            width: 491px;
            height: 600px;
        }
        #login
        {
            background: url(lib/images/login_bg.png);
            _background: none; /*ie6*/
            _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true', sizingMethod='scale',src="lib/images/login_bg.png");
            width: 493px;
            height: 386px;
            position: absolute;
            top: 25%;
            left: 30%;
        }
        #main
        {
            width: 493px;
            height: 386px;
            position: absolute;
            top: 25%;
            left: 30%;
            z-index: 10;
            margin: 0px;
            padding: 90px 0px 0px 230px;
        }
        .button
        {
            width: 65px;
            height: 20px;
            text-align: center;
            cursor: hand;
            color: #000000;
            background-image: url(lib/images/bottom_bg.jpg);
            border: 1px solid #95b8d0;
            font-size: 12px;
            font-family: "宋体";
        }
        *
        {
            margin: 0;
        }
        .input
        {
            height: 14px;
        }
        .style1
        {
            width: 50px;
        }
        .style2
        {
            height: 14px;
            width: 50px;
        }
    </style>

    <script src="lib/script/jquery.js" type="text/javascript"></script>

    <script type="text/javascript">
        var Init = function () {
            var changecode = function () {
                $("#imgs").attr("src", "Share/checkcode.aspx?" + Math.random());
            }

            $("#imgs").click(changecode);
            changecode();
        }
        $().ready(function () {
            Init();
            if (!$.browser.msie) {
                alert("系统检测到您使用非IE核心浏览器登录，要使用本系统所有功能，必须使用微软ie浏览器。");
                $("#btnLogin").hide();
                $("#reset").hide();
            }
        });


    </script>

      <script type="text/javascript" src="https://app.emed.cc/ipaddress/ipaddress" charset="utf-8"></script>
    <script type="text/javascript">
        function getIP() {
            var i = returnCitySN;
            document.getElementById("hfIP").value = i['cip'];
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="left">
        <div id="container">
            <div id="login">
                <div class="loginL">
                    <ul class="loginL_ul">
                        <li><a href="javascript:void(0)">
                            <img src="lib/images/plogin.jpg" /></a> </li>
                        <li><a href="javascript:void(0)"  onclick="window.location='UserLoginCA.aspx'">
                            <img src="lib/images/calogin.jpg" /></a> </li>
                    </ul>
                </div>
            </div>
            <div id="main">
                <table width="200" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td style="padding: 8px" class="style1">
                            用户名：
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtUserId" runat="server" CssClass="input" MaxLength="15" Width="80"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtUserId"
                                ErrorMessage="*" Display="Dynamic"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding: 8px" class="style1">
                            密码：
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtUserPwd" runat="server" CssClass="input" TextMode="Password"
                                Width="80"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtUserPwd"
                                ErrorMessage="*" Display="Dynamic"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding: 8px" class="style1">
                            验证码：
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtCode" AutoCompleteType="Disabled" runat="server" CssClass="input"
                                MaxLength="4" Width="40"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCode"
                                ErrorMessage="*" Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:Image ID="imgs" runat="server" />
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:DropDownList ID="ddlProjectList" runat="server" Width="200px">
                                <asp:ListItem Value="1">2015年四川省公立医院药品集中采购</asp:ListItem>
                            </asp:DropDownList> 
                        </td>
                    </tr>
                    <tr>
                    <td colspan="2" align="center">
                         <asp:Button ID="btnLogin" CssClass="button" runat="server" Text="登录" OnClick="btnLogin_Click"  OnClientClick="getIP()" />
                            <input type="reset" id="reset" value="清除" class="button" />
                             <asp:HiddenField runat="server" ID="hfIP" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
